﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Inspinia_MVC5.Models
{
    /// <summary>
    /// 借书表
    /// </summary>
    public class Borrow
    {
        public int ID { get; set; }

        [Display(Name = "借阅书籍")]
        [Required]

        public int? BookId { get; set; }
        [Display(Name = "用户角色")]
        [Required]


        public int? Role { get; set; }
        [Display(Name = "教师")]


        public int? TeacherId { get; set; }
        [Display(Name = "学生")]


        public int? StudentId { get; set; }
        [Display(Name = "状态")]
        [Required]


        public int? Status { get; set; }
        [Display(Name = "借阅时间")]
        [Required]


        public DateTime? JieYueDate { get; set; }
        [Display(Name = "应还时间")]
        [Required]


        public DateTime? YingHuanDate { get; set; }
        [Display(Name = "实际归还")]


        public DateTime? ReturnDate { get; set; }

        [Column(TypeName = "money")]
        [Display(Name = "滞纳金")]

        public decimal? OverDue { get; set; }
        [Display(Name = "续借时间")]


        public DateTime? XuJieDate { get; set; }

        public virtual Book Book { get; set; }

        public virtual Student Student { get; set; }

        public virtual Teacher Teacher { get; set; }
    }
}